//
//  UpdownPageVIew.m
//  ebook
//
//  Created by 吴超飞 on 16/10/24.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import "UpdownPageVIew.h"
#import "ReaderGlobalModel.h"
#import "PageView.h"
#import "PageScrollFooterView.h"
#import "UIView+Extension.h"

@interface UpdownPageVIew()

@property (nonatomic, strong) NSMutableArray *pageDatas;//分页数据 PageObject对象
@property (nonatomic, assign) NSInteger index;//当前页

@property (nonatomic, strong) UIScrollView *scrollView;

@end


@implementation UpdownPageVIew

-(void)drawRect:(CGRect)rect{
    
    [self addSubview:self.scrollView];
}

-(UIScrollView *)scrollView{
    if(!_scrollView){
        _scrollView = [[UIScrollView alloc] initWithFrame:self.bounds];
        _scrollView.pagingEnabled = YES;
    }
    return _scrollView;
}

-(void)updateDatasource:(NSDictionary *)dict{
    self.pageDatas = [dict objectForKey:@"data"];
    self.index = [[dict objectForKey:@"index"] integerValue];
}

-(void)reloadView{

}

@end
